lib/gpg: Add helper to kill GPG agent
authorDan Nicholson <nicholson@endlessm.com>
Thu, 10 Jan 2019 19:49:17 +0000 (13:49 -0600)
committerAtomic Bot <atomic-devel@projectatomic.io>
Wed, 19 Jun 2019 17:30:24 +0000 (17:30 +0000)
commit4670837f7c9d027b8724c4061219ee951dc8cd6e
tree6bbe50363d6128fce17044945d2a8006c3e15222
parent0c63f30783076915fc0ea5892a4908e53583146d
lib/gpg: Add helper to kill GPG agent

With GnuPG 2, any time you do basically any operation, a gpg-agent will
be spawned for the GPG home directory in use. The classic way to kill a
gpg-agent is to use `gpg-connect-agent` and send the `killagent` command
as is done in libtest.sh.

Closes: #1799
Approved by: cgwalters
src/libotutil/ot-gpg-utils.c
src/libotutil/ot-gpg-utils.h